package table_walker;

import java.util.ArrayList;
import java.util.List;

public class CompleteToken {
	private final String name;
	private final String filename;
	private ArrayList<Integer> startIndexes;

	public CompleteToken(String name, String filename) {
		this.filename = filename;
		this.name = name;
		this.startIndexes=new ArrayList<Integer>();
	}

	public String getFilename() {
		return filename;
	}
	
	public String getName() {
		return name;
	}
	
	public ArrayList<Integer> getstartIndexes(){
		return startIndexes;
	}
	
	public List<String> generateList(){
		List<String> temp = new ArrayList<String>();
		temp.add(name);
		temp.add("<");
		temp.add(filename);
		for(int index:startIndexes){
			temp.add(String.valueOf(index));
		}
		temp.add(">");
		return temp;
	}
}
